home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 5 Developer's Kit / vb5 dev kit.iso / dev / mailx6 / _setup.2 / Group5 / SESSIONF.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-05-23  |  5.8 KB  |  206 lines

  1. VERSION 2.00
  2. Begin Form SessionForm 
  3.    Caption         =   "Mail X Session Form"
  4.    ClientHeight    =   3075
  5.    ClientLeft      =   1530
  6.    ClientTop       =   1845
  7.    ClientWidth     =   6390
  8.    Height          =   3450
  9.    Left            =   1485
  10.    LinkTopic       =   "Form2"
  11.    ScaleHeight     =   3075
  12.    ScaleWidth      =   6390
  13.    Top             =   1515
  14.    Width           =   6480
  15.    Begin MForm MForm1 
  16.       Height          =   255
  17.       Left            =   120
  18.       MXFormName      =   "FormTag1"
  19.       Top             =   120
  20.       Width           =   2295
  21.    End
  22.    Begin MReci MReci1 
  23.       AddRecipientClass=   1  '1- TO:
  24.       AddressCaption  =   "Mail X Address Caption "
  25.       AddressEditNum  =   3
  26.       BindString      =   "MMsg1"
  27.       DetailModifiable=   -1  'True
  28.       DisplayErrors   =   0   'False
  29.       FetchType       =   1  '1- Msg. Recipient
  30.       Height          =   420
  31.       Left            =   5400
  32.       ResolveDialog   =   -1  'True
  33.       Top             =   1320
  34.       Width           =   420
  35.    End
  36.    Begin MMsg MMsg1 
  37.       BindString      =   "MSess1"
  38.       BodyAsFile      =   0   'False
  39.       DisplayErrors   =   0   'False
  40.       DisplaySendDialog=   0   'False
  41.       EnvelopeOnly    =   0   'False
  42.       FastFetch       =   0   'False
  43.       FetchMsgType    =   ""
  44.       Height          =   420
  45.       Left            =   3720
  46.       MarkAsRead      =   0   'False
  47.       SortMsg         =   0   'False
  48.       SuppressAttach  =   0   'False
  49.       TimeFormat      =   "%m/%d/%y"
  50.       Top             =   1320
  51.       UnreadOnly      =   0   'False
  52.       Width           =   420
  53.       WorkingMsg      =   0  '0- Inbox Message
  54.    End
  55.    Begin MSess MSess1 
  56.       DefaultPath     =   ""
  57.       DisplayErrors   =   -1  'True
  58.       DownLoadMsg     =   -1  'True
  59.       Height          =   420
  60.       Left            =   5520
  61.       LogonUI         =   -1  'True
  62.       Mail_Type       =   0  '0- NONE
  63.       MapiCustomLibName=   ""
  64.       NewSession      =   -1  'True
  65.       Password        =   ""
  66.       Top             =   120
  67.       User            =   ""
  68.       Width           =   420
  69.    End
  70.    Begin CommandButton Command3 
  71.       Caption         =   "Delete Recipient"
  72.       Height          =   375
  73.       Left            =   4320
  74.       TabIndex        =   10
  75.       Top             =   2520
  76.       Width           =   1815
  77.    End
  78.    Begin CommandButton Command2 
  79.       Caption         =   "Fetch Next"
  80.       Height          =   375
  81.       Left            =   2160
  82.       TabIndex        =   9
  83.       Top             =   2520
  84.       Width           =   2055
  85.    End
  86.    Begin CommandButton Command1 
  87.       Caption         =   "Fetch First"
  88.       Height          =   375
  89.       Left            =   240
  90.       TabIndex        =   8
  91.       Top             =   2520
  92.       Width           =   1695
  93.    End
  94.    Begin CommandButton BtnAddressDialog 
  95.       Caption         =   "Address Dialog"
  96.       Height          =   375
  97.       Left            =   4320
  98.       TabIndex        =   4
  99.       Top             =   1920
  100.       Width           =   1815
  101.    End
  102.    Begin CommandButton BtnAdd 
  103.       Caption         =   "Add Resolved Names"
  104.       Height          =   375
  105.       Left            =   2160
  106.       TabIndex        =   3
  107.       Top             =   1920
  108.       Width           =   2055
  109.    End
  110.    Begin CommandButton BtnResolve 
  111.       Caption         =   "ResolveNames"
  112.       Height          =   375
  113.       Left            =   240
  114.       TabIndex        =   2
  115.       Top             =   1920
  116.       Width           =   1695
  117.    End
  118.    Begin TextBox szResolveText 
  119.       Height          =   330
  120.       Left            =   2220
  121.       TabIndex        =   1
  122.       Top             =   660
  123.       Width           =   3930
  124.    End
  125.    Begin Label nCount 
  126.       Height          =   315
  127.       Left            =   1995
  128.       TabIndex        =   7
  129.       Top             =   1260
  130.       Width           =   795
  131.    End
  132.    Begin Label Label3 
  133.       Caption         =   "Recipient Count:"
  134.       Height          =   300
  135.       Left            =   180
  136.       TabIndex        =   6
  137.       Top             =   1260
  138.       Width           =   1665
  139.    End
  140.    Begin Label Label2 
  141.       Caption         =   "(Introduce a List: Name1;Name2; etc)"
  142.       Height          =   285
  143.       Left            =   2205
  144.       TabIndex        =   5
  145.       Top             =   285
  146.       Width           =   3420
  147.    End
  148.    Begin Label Label1 
  149.       Caption         =   "Address To Resolve:"
  150.       Height          =   285
  151.       Left            =   150
  152.       TabIndex        =   0
  153.       Top             =   690
  154.       Width           =   1995
  155.    End
  156. Sub BtnAdd_Click ()
  157.     MReci1.Action = ACTION_ADDRECIPIENT
  158.     UpdateCount
  159.     UpdateText
  160. End Sub
  161. Sub BtnAddressDialog_Click ()
  162.     MReci1.Action = ACTION_ADDRESS
  163.     UpdateCount
  164.     UpdateText
  165. End Sub
  166. Sub BtnResolve_Click ()
  167.     MReci1.ResolveName = szResolveText
  168.     szResolveText = MReci1.ResolveName
  169. End Sub
  170. Sub Command1_Click ()
  171.     If MReci1.RecipientCount > 0 Then
  172.         MReci1.RecipientNum = 1
  173.         UpdateText
  174.     Else
  175.         MsgBox "Mail X Recipient Control is Empty"
  176.     End If
  177. End Sub
  178. Sub Command2_Click ()
  179.     NextR = MReci1.RecipientNum + 1
  180.     If NextR <= MReci1.RecipientCount Then
  181.         MReci1.RecipientNum = NextR
  182.         UpdateText
  183.     Else
  184.         MsgBox "Last Recipient Reached"
  185.     End If
  186. End Sub
  187. Sub Command3_Click ()
  188.     MReci1.Action = ACTION_DEL_RECIPIENT
  189.     UpdateCount
  190.     UpdateText
  191. End Sub
  192. Sub Form_Load ()
  193.     Load SystemX
  194.     SystemX.MSMAIL = True
  195.     SystemX.Show 1
  196.     MSess1.Logon = True
  197.     If MSess1.Logon = False Then End
  198.     UpdateCount
  199. End Sub
  200. Sub UpdateCount ()
  201.     nCount = MReci1.RecipientCount
  202. End Sub
  203. Sub UpdateText ()
  204.     szResolveText = MReci1.RecipientName
  205. End Sub
  206.